package cn.i7baozh.starter.client.remote;

import cn.i7baozh.starter.client.remote.fallback.TestRemoteServiceFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Title:
 * @Package
 * @Description:
 * @author: baoqi.zhang
 * @date:
 */
@Component
@FeignClient(value = "starter-service",contextId = "starter1",  fallback = TestRemoteServiceFallback.class)
public interface TestRemoteService {

    @GetMapping("/service/api/test/sayHello")
    String sayHello(@RequestParam(value = "name") String name);

}
